package org.ziegler.log.analysis.fileFilter;

import java.io.File;
import java.util.Arrays;
import java.util.List;

import org.ziegler.log.analysis.AppConfig;
import org.ziegler.log.analysis.core.FileUtils;

public class AllFileFilter implements FileFilter {

    private final File[] files;

    public AllFileFilter() {
        files = FileUtils.listLogFiles(AppConfig.getInstance().getLogPath());
    }

    @Override
    public List<File> getFiles() {
        return Arrays.asList(files);
    }
}
